You can use the
SetDefaultOutputVolume
SetDefaultOutputVolume
function to set the default volume of a sound output device.
FUNCTION SetDefaultOutputVolume (level: LongInt): OSErr;
level
- The desired default volume level of a sound output device.
DESCRIPTION
TheSetDefaultOutputVolume
function sets the default volume of a sound output device. The values you can specify in the high and low words of thelevel
parameter range from 0 (silence) to $0100 (full volume).SPECIAL CONSIDERATIONS
TheSetDefaultOutputVolume
function is available only in versions 3.0 and later of the Sound Manager. You can call this function at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSetDefaultOutputVolume
function are
Trap macro Selector _SoundDispatch $02300024 RESULT CODES
noErr 0 No error